﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VitCode.Castle.DataAccess;

namespace VitCode.Castle.Management
{
   public class SystemLogManager
    {
        private CastleAccess m_CastleAccess = new CastleAccess();
        public  bool SaveSystemLogInfo(string userCode,string userName,string Operator,string systemType,Guid areaId)
        {
            var insertSql = @"insert into NSCS_SystemLog(Id,UserCode,UserName,Operator,SystemType,AreaId) values(newId(),'" +
                            userCode + "','" + userName + "','" + Operator + "','" + systemType + "','" + areaId + "')";
          int affectRow =  m_CastleAccess.ExecuteCmd(insertSql);
          return affectRow > 0;
        }

        
    }
}
